Status: New
Owner: ----
New issue 390 by luke.leighton: assumption that prototype of built-in
objects hasn't been overridden
http://code.google.com/p/v8/issues/detail?id=390
we're using the pyjamas python-to-javascript compiler, in combination with
flier liu's PyV8 project, to create a python accelerator using v8, by
translating python into JIT-executed javascript.
unfortunately, that means that String needs to be turned into something
that's more like python, and likewise Number, etc.
unfortunately, there appears to be a use of string.split and string.join
inside v8, which of course fails because the semantics of string.split and
string.join are now wildly different.
It looks like v8 has its own string.split/string.join which
collides...
k...@kbdesk:~/work/javascript-v8/v8-edge$ svn diff
Index: src/messages.js
===================================================================
--- src/messages.js (revision 2224)
+++ src/messages.js (working copy)
@@ -126,7 +126,8 @@
var str;
try { str = ToDetailString(args[i]); }
catch (e) { str = "#<error>"; }
- result = result.split("%" + i).join(str);
+ try { result = result.split("%" + i).join(str); }
+ catch (e) { result = result + "---" + i + "---" + str; }
}
return result;
}
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---