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

Unified Diff: test/mjsunit/samevalue.js

Issue 1695743003: [builtins] Support SameValue and SameValueZero via runtime functions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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
« src/js/v8natives.js ('K') | « test/mjsunit/harmony/simd.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/samevalue.js
diff --git a/test/mjsunit/samevalue.js b/test/mjsunit/samevalue.js
index 038fd68eb9c09673c9d56174be2d3460bac259d9..40d0a4b1f18f2929374f33e6622e6a6be7df9f0d 100644
--- a/test/mjsunit/samevalue.js
+++ b/test/mjsunit/samevalue.js
@@ -33,7 +33,7 @@ var obj1 = {x: 10, y: 11, z: "test"};
var obj2 = {x: 10, y: 11, z: "test"};
var sameValue = Object.is;
-var sameValueZero = natives.ImportNow("SameValueZero");
+var sameValueZero = function(x, y) { return %SameValue(x, y); }
Michael Starzinger 2016/02/17 09:44:21 Shouldn't this be %SameValueZero here?
Benedikt Meurer 2016/02/17 10:20:26 Done.
// Calls SameValue and SameValueZero and checks that their results match.
function sameValueBoth(a, b) {
« src/js/v8natives.js ('K') | « test/mjsunit/harmony/simd.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698