]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - API/tests/testapi.js
JavaScriptCore-1218.35.tar.gz
[apple/javascriptcore.git] / API / tests / testapi.js
index 28fa5443393558043cc2166f6e2cd6efb34615c5..47c20a830cbee32153093edf55f72ca2124dfa3c 100644 (file)
@@ -262,6 +262,10 @@ shouldBe("PropertyCatchalls.x", 4);
 for (var i = 0; i < 6; ++i)
     var x = PropertyCatchalls.x;
 shouldBe("x", null);
+var make_throw = 'make_throw';
+shouldThrow("PropertyCatchalls[make_throw]=1");
+make_throw = 0;
+shouldThrow("PropertyCatchalls[make_throw]=1");
 
 for (var i = 0; i < 10; ++i) {
     for (var p in PropertyCatchalls) {