Reviewers: Erik Corry,
Description:
Refactor the samevalue internal method and add tests for this method.
Noticing that the only difference between samevalue and strict equality is
on
numbers we can simplify SameValue.
The old version did not return a correct answer if called on two strings
since
StringEquals (from runtime.cc) returns an answer that is the negated value
(if treated as a boolean).
Please review this at http://codereview.chromium.org/2136024/show
SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/
Affected files:
M src/runtime.js
A test/mjsunit/samevalue.js
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev