Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Unified Diff: src/collection.js

Issue 1187473008: Bug demonstration: lookup failure in case expression in native js (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/collection.js
diff --git a/src/collection.js b/src/collection.js
index 86898529c3b7e8289e55b33696307c216eb3dfe5..dc0c29af2360bef671947c56588c39fb60942c73 100644
--- a/src/collection.js
+++ b/src/collection.js
@@ -378,7 +378,15 @@ function MapSet(key, value) {
}
+var GlobalFoo = 5;
+
+
function MapHas(key) {
+ switch (key) {
+ case GlobalFoo:
+ throw 'Adam was here';
+ }
+
if (!IS_MAP(this)) {
throw MakeTypeError(kIncompatibleMethodReceiver,
'Map.prototype.has', this);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698