Hi,
In my C++ embedding application, I am executing this line:
nsAutoString val;
sc-EvaluateString(script , 0, 0, 0, 0, 0, val, 0);
where sc is the global JS context, and script is var MyJSValue='D:\';
In gecko 2.0, this line throws an exception, but if I obsolete the word
var from the script then it works OK (i.e. script=MyJSValue='D:\';)
Any ideas why the var word is causing the exception?
Thanks,
Annie
-Original Message-
From: dev-embedding-bounces+afizitzky=ptc@lists.mozilla.org
[mailto:dev-embedding-bounces+afizitzky=ptc@lists.mozilla.org] On
Behalf Of Fizitzky, Annie
Sent: Thursday, January 26, 2012 4:49 PM
To: dev-embedding@lists.mozilla.org
Subject: Problem when migrating from gecko 1.9.1.2 to 2.0
Hi,
I have a C++ embedding application, in which I'm using
nsIScriptContext:: EvaluateString() to execute JS commands.
Under Gecko 1.9.1.2 it works fine, but after migrating it to Gecko 2.0,
I get these assersions:
1. JS_ASSERT(!initialVarObj-getOps()-defineProperty); - in jsutil.cpp
When I get this assertion, the value of
initialVarObj-getOps()-defineProperty is js: proxy_DefineProperty
2. JS_ASSERT(entries); - in jsscope.cpp
After getting this assertion, my application crashes.
Does someone know why these assertions happen only in Gecko 2.0?
Thanks,
Annie
___
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding
___
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding