Browse Source

Fix for precedence of Javascript typeof operator

tags/2021-05-28
jules 9 years ago
parent
commit
396d73a989
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_core/javascript/juce_Javascript.cpp

+ 1
- 1
modules/juce_core/javascript/juce_Javascript.cpp View File

@@ -1362,7 +1362,7 @@ struct JavascriptEngine::RootObject : public DynamicObject
{
ScopedPointer<FunctionCall> f (new FunctionCall (location));
f->object = new UnqualifiedName (location, "typeof");
f->arguments.add (parseExpression());
f->arguments.add (parseUnary());
return f.release();
}


Loading…
Cancel
Save