Hi, I'm working on the resolution of bug 374918 "String primitive prototype wrongly resolved when used with many top scopes" (https://bugzilla.mozilla.org/show_bug.cgi?id=374918)
After trying different solutions, I come now to the conclusion that to resolve correctly the prototype of primitive objects... storage of primitive objects has to be *totally avoided* and replace by the NativeXxxx (NativeString, NativeNumber and NativeBoolean) otherwise the information on the scope is lost. There are 2 solutions (as far as I can currently see) to implement it: - wrap primitives in NativeXxxx asap (ie when put in the stack) - wrap primitives in NativeXxxx first when they are "used", which means on args just before function call, on the value just before setting property, ... What would be the best way? Cheers, Marc. -- Web: http://www.efficient-webtesting.com Blog: http://mguillem.wordpress.com _______________________________________________ dev-tech-js-engine-rhino mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
