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

Unified Diff: test/webkit/prototypes.js

Issue 1051523003: [es6] Object.getPrototypeOf should work with values (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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 | « test/test262/test262.status ('k') | test/webkit/prototypes-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/webkit/prototypes.js
diff --git a/test/webkit/prototypes.js b/test/webkit/prototypes.js
index 26ae286df69b1d3ac7d1a7fd3a994f7f66140168..9e62c3a52ee4bef1ae52c6a445b4927f9dcf9d7f 100644
--- a/test/webkit/prototypes.js
+++ b/test/webkit/prototypes.js
@@ -43,8 +43,8 @@ shouldBe("Date.__proto__", "Object.__proto__");
shouldBe("Number.__proto__", "Object.__proto__");
shouldBe("String.__proto__", "Object.__proto__");
-shouldThrow("Object.getPrototypeOf('')");
-shouldThrow("Object.getPrototypeOf(0)");
+shouldBe("Object.getPrototypeOf('')", "String.prototype");
+shouldBe("Object.getPrototypeOf(0)", "Number.prototype");
shouldBe("Object.getPrototypeOf([])", "Array.prototype");
shouldBe("Object.getPrototypeOf({})", "Object.prototype");
shouldBe("Object.getPrototypeOf(new Date)", "Date.prototype");
« no previous file with comments | « test/test262/test262.status ('k') | test/webkit/prototypes-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698