summaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/call-stub.js
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-07-15 18:52:48 -0700
committerRyan Dahl <ry@tinyclouds.org>2010-07-15 18:52:48 -0700
commitdcd41ca864749b130b943c1e41eb993388f7e9d8 (patch)
tree8decfc4a73177c24c530a5428b57dcd159cfcf83 /deps/v8/test/mjsunit/call-stub.js
parent078a48a97b5b2597443f867e904a4c7e7f061c42 (diff)
downloadandroid-node-v8-dcd41ca864749b130b943c1e41eb993388f7e9d8.tar.gz
android-node-v8-dcd41ca864749b130b943c1e41eb993388f7e9d8.tar.bz2
android-node-v8-dcd41ca864749b130b943c1e41eb993388f7e9d8.zip
Upgrade V8 to 2.3.0
Diffstat (limited to 'deps/v8/test/mjsunit/call-stub.js')
-rw-r--r--deps/v8/test/mjsunit/call-stub.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/deps/v8/test/mjsunit/call-stub.js b/deps/v8/test/mjsunit/call-stub.js
index a9132a6bd0..9d11649e7a 100644
--- a/deps/v8/test/mjsunit/call-stub.js
+++ b/deps/v8/test/mjsunit/call-stub.js
@@ -49,3 +49,18 @@ for (var i = 1; i < 100; i++) {
}
assertEquals(i < 50 || i >= 70 ? 1 : 2, h.m());
}
+
+
+var nonsymbol = 'wwwww '.split(' ')[0];
+Hash.prototype.wwwww = Hash.prototype.m;
+
+for (var i = 1; i < 100; i++) {
+ if (i == 50) {
+ h[nonsymbol] = function() {
+ return 2;
+ };
+ } else if (i == 70) {
+ delete h[nonsymbol];
+ }
+ assertEquals(i < 50 || i >= 70 ? 1 : 2, h.wwwww());
+}