trying to run a simple script from the command line and get a syntax
error... I'm on OSX 10.7, FF6, FB1.8.1b2. Opened firebug > Console >
commandline... Entered a simple regex script:
var re = /\bapple\b/gi;
var string1 = "Apple PEAR banana pineapple appLE";
var sting = string1.test(re);
while(sting == true) {
console.log(re.lastIndexOf(string1));
}
And get a syntax error:
SyntaxError { source="with(_FirebugCommandLin...ring1));\n}\n</script>
\n};", fileName="resource://firebug_rjs/...e/commandLineExposed.js",
lineNumber=154}
with or without the script tag. I had it without, first and tried
that. Any other info I should include, please let me know and I'll be
happy to elaborate. I think that's about it, though.
--
You received this message because you are subscribed to the Google Groups
"Firebug" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/firebug?hl=en.