Pass the ExecutionContext into the code generator
authorLars Knoll <lars.knoll@digia.com>
Sun, 2 Dec 2012 18:58:35 +0000 (10:58 -0800)
committerSimon Hausmann <simon.hausmann@digia.com>
Mon, 3 Dec 2012 14:56:06 +0000 (15:56 +0100)
commitecb72cd271992ed4b0b300c6b4ccbde9c3bcc729
treec2ec9abbc9630e82520f3d923bcc102c95168264
parent73d95c5e914b3d9f31c1f673ba3edb029981dc17
Pass the ExecutionContext into the code generator

Use the contexts strict mode flag to correctly parse
eval code inside strict mode sections.
Add code to allow the code generator to throw syntax
errors.

Change-Id: I4e4258b0d0b88952f4d609ec51bbe8db9a1c66a9
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
qmljs_objects.cpp
qv4codegen.cpp
qv4codegen_p.h
qv4ecmaobjects.cpp