Reviewers: danno,

Message:
Quick solution to the problem described here:
http://code.google.com/p/v8/issues/detail?id=1593

Works fine for cases like
123 instanceof 100

but for the case described in the issue the "[]" is not actually printed.

Though I think there is no point digging deeper here.

Description:
Quick fix to issue 1593
BUG=v8:1593


Please review this at http://codereview.chromium.org/7622009/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M src/runtime.js


Index: src/runtime.js
diff --git a/src/runtime.js b/src/runtime.js
index 4b600df7360b3431f9a3834937a022e35d1a4648..c91861f0ff4dbb78cf60a13922bedbd5b279989d 100644
--- a/src/runtime.js
+++ b/src/runtime.js
@@ -366,7 +366,7 @@ function IN(x) {
 function INSTANCE_OF(F) {
   var V = this;
   if (!IS_FUNCTION(F)) {
-    throw %MakeTypeError('instanceof_function_expected', [V]);
+    throw %MakeTypeError('instanceof_function_expected', [F]);
   }

   // If V is not an object, return false.


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to