]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - tests/stress/put-by-id-strict-build-list-order.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / put-by-id-strict-build-list-order.js
diff --git a/tests/stress/put-by-id-strict-build-list-order.js b/tests/stress/put-by-id-strict-build-list-order.js
new file mode 100644 (file)
index 0000000..baab8e5
--- /dev/null
@@ -0,0 +1,16 @@
+function foo(o) {
+    "use strict";
+    o.f = 42;
+}
+
+noInline(foo);
+
+var a = {};
+foo(a);
+foo(a);
+a = {f : 3};
+foo(a);
+
+var b = {};
+foo(b);
+foo(b);