Gabriel Ivăncescu
|
acb076c820
|
jscript: Lookup host global object on demand instead of storing it in script context.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-03-06 17:54:31 +01:00 |
Gabriel Ivăncescu
|
fcba99c52e
|
jscript: Use NULL in frame->this_obj for the global code object.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-03-06 17:54:28 +01:00 |
Gabriel Ivăncescu
|
eb80cc0f4a
|
jscript/tests: Add tests for named items.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-03-05 19:50:15 +01:00 |
Gabriel Ivăncescu
|
e560489e50
|
jscript: Use struct list for named items.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-03-05 19:50:13 +01:00 |
Gabriel Ivăncescu
|
3d23f095bf
|
jscript: Reference-count the named items.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-02-28 19:37:38 +01:00 |
Gabriel Ivăncescu
|
9576ff7048
|
jscript: Preserve the 'enter_notified' field when an error occurs.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-02-21 00:55:44 +01:00 |
Gabriel Ivăncescu
|
f32a729032
|
jscript: Implement the SCRIPTITEM_CODEONLY flag.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-02-21 00:55:44 +01:00 |
Gabriel Ivăncescu
|
0242ae52e6
|
jscript: Lookup the named item using a helper function.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-02-21 00:55:44 +01:00 |
Gabriel Ivăncescu
|
f6a4dda977
|
jscript: Move the named_item_t definition.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-02-21 00:55:44 +01:00 |
Gabriel Ivăncescu
|
3c517f502b
|
jscript: Move the clear_script_queue up to SCRIPTSTATE_INITIALIZED.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-02-21 00:55:44 +01:00 |
Gabriel Ivăncescu
|
522340aeb3
|
jscript: Initialize the script context in SetScriptSite.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-02-21 00:55:44 +01:00 |
Jacek Caban
|
150b7391b8
|
jscript: Add GetSourceLineText implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-02-04 21:30:27 +01:00 |
Jacek Caban
|
348eef2e02
|
jscript: Add GetSourcePosition implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-02-03 20:48:04 +01:00 |
Jacek Caban
|
ed3e5404dd
|
jscript: Return error source and description from GetExceptionInfo.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-02-03 20:48:04 +01:00 |
Jacek Caban
|
ed22d71fd2
|
jscript: Propagate compiler error location.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-02-03 20:48:04 +01:00 |
Jacek Caban
|
27e4881c68
|
jscript: Propagate parser error location.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-02-03 20:48:04 +01:00 |
Jacek Caban
|
bfb2e5d959
|
jscript: Delay error object creation for builtin errors with message string until it's needed.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-02-03 20:48:04 +01:00 |
Jacek Caban
|
bcba07229a
|
jscript: Support propagating error message.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-02-03 20:48:03 +01:00 |
Jacek Caban
|
0f4d4f7184
|
jscript: Store error location in jsexcept_t.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-02-03 20:48:03 +01:00 |
Jacek Caban
|
83fa76c25e
|
jscript: Propagate Invoke error code using jsexcept_t.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-02-03 20:48:03 +01:00 |
Jacek Caban
|
8b836797e2
|
jscript: Directly return error code instead of using throw_type_error where possible.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-02-02 16:25:12 +01:00 |
Jacek Caban
|
b6e91906d3
|
jscript: Directly return error code instead of using throw_type_error in date.c.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-02-02 16:25:09 +01:00 |
Jacek Caban
|
df70647b00
|
jscript: Directly return error code instead of using throw_syntax_error.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-02-02 16:25:07 +01:00 |
Jacek Caban
|
2224736967
|
jscript: Directly return error code instead of using throw_uri_error.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-02-02 16:25:05 +01:00 |
Jacek Caban
|
0167f4a7dd
|
jscript: Directly return error code instead of using throw_regexp_error.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-02-02 16:25:03 +01:00 |
Jacek Caban
|
c372e79e25
|
jscript: Directly return error code instead of using throw_reference_error.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-02-02 16:25:00 +01:00 |
Jacek Caban
|
b67c957f39
|
jscript: Directly return error code instead of using throw_range_error.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-02-02 16:24:58 +01:00 |
Jacek Caban
|
1d487027a0
|
jscript: Directly return error code instead of using throw_generic_error.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-02-02 16:24:55 +01:00 |
Jacek Caban
|
940b02584e
|
jscript: Factor out format_error_message implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-02-02 16:24:53 +01:00 |
Jacek Caban
|
f6c5da47f7
|
jscript: Suport generic error object for exception with no associated JavaScript exception value.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-02-02 16:24:51 +01:00 |
Jacek Caban
|
7548238297
|
jscript: Add IActiveScriptError implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-01-30 16:22:33 +01:00 |
Jacek Caban
|
33984c390d
|
jscript: Use enter_script and leave_script to call script site notifications.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-01-30 16:22:33 +01:00 |
Jacek Caban
|
9855c248f8
|
jscript: Store error code in jsexcept_t.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-01-30 16:22:33 +01:00 |
Jacek Caban
|
3c9b7011ff
|
jscript: Store separated flag indicating if current exception value is valid.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-01-30 15:58:42 +01:00 |
Jacek Caban
|
63683b42f7
|
jscript: Use separated jsexcept_t instance for each external call.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-01-30 15:58:40 +01:00 |
Jacek Caban
|
274503c839
|
jscript: Support DISP_E_EXCEPTION InvokeEx result.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-01-30 15:58:38 +01:00 |
Jacek Caban
|
ba500a6a9e
|
jscript: Store source context and starting line in bytecode_t.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-01-30 15:58:36 +01:00 |
Jacek Caban
|
614ea7e624
|
jscript: Use internal jsdisp calls only within the same script context.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-01-30 15:58:34 +01:00 |
Jacek Caban
|
9a9a1821a3
|
jscript/tests: Add more script enter notification tests.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-01-24 21:24:01 +01:00 |
Jacek Caban
|
f58420b4ad
|
jscript/tests: Add more error reporting tests.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-01-24 21:23:58 +01:00 |
Jacek Caban
|
78853e3853
|
jscript: Store source position in instr_t.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-01-24 21:23:56 +01:00 |
Jacek Caban
|
7828df17e2
|
jscript: Introduce jsstr_to_bstr helper.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-01-24 21:23:53 +01:00 |
Jacek Caban
|
152bd21d95
|
jscript: Store source location in statement_t.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-01-23 16:39:42 +01:00 |
Jacek Caban
|
84179c16f7
|
jscript: Always set parser error code on error.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-01-23 16:39:37 +01:00 |
Jacek Caban
|
0fb086d573
|
jscript: Use parser location to calculate function body string.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-01-23 16:39:33 +01:00 |
Jacek Caban
|
fc009bf882
|
jscript/tests: Use wide char string literals in caller.c.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-01-15 22:03:36 +01:00 |
Jacek Caban
|
740bcc4bd7
|
jscript/tests: Use wide char string literals in activex.c.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-01-15 22:03:36 +01:00 |
Jacek Caban
|
c2f94b8488
|
jscript/tests: Use wide char strings in a few more places.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-01-14 17:29:33 +01:00 |
Jacek Caban
|
1670e6e46a
|
jscript/tests: Use wide char string literals instead of strcmp_wa.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-01-14 17:29:31 +01:00 |
Jacek Caban
|
0c0c5607f8
|
jscript/tests: Use wide char string literals instead of a2bstr.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-01-14 17:29:29 +01:00 |