Commit Graph

114 Commits

Author SHA1 Message Date
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 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 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 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
Jacek Caban 363301a897 jscript/tests: Use wide char string literals instead of parse_script_a.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-14 17:29:27 +01:00
Jacek Caban 2a6119814a jscript/tests: Use wide char string literals instead of parse_htmlscript_a.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-14 17:29:25 +01:00
Jacek Caban 3fc0c96512 jscript/tests: Use wide char string literals instead of parse_script_with_error_a.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-14 17:29:21 +01:00
Nikolay Sivov aa3eb3015f jscript/tests: Add missing checks for Close() calls (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-07 21:51:20 +01:00
Francois Gouget 326fcdf967 jscript/tests: A spelling fix in an ok() message.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-08 17:53:36 +02:00
Jacek Caban febfcdae40 jscript: Add support for parametrized compound assignments.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-08 17:53:36 +02:00
Jacek Caban 58dd9c2b99 jscript: Support VT_UI1 and VT_I1 types.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-08 17:53:36 +02:00
Jacek Caban aac2110e8f jscript: Allow calling eval function from external code.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-20 22:09:42 +02:00
Andreas Maier f010569c3d jscript/tests: Add more Enumerator tests.
Signed-off-by: Andreas Maier <staubim@quantentunnel.de>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-17 20:02:50 +02:00
Jacek Caban 36e58035c2 jscript/tests: Allow GetTypeInfo calls.
Those are called by some versions of jscript.dll.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-04 13:06:55 +01:00
Michael Stefaniuc 05253c75cc jscript/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-06 17:16:02 +02:00
Nikolay Sivov 8643a17ff3 jscript/tests: Test for script object creation failure (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-08 22:47:24 +01:00
Jacek Caban 4fc0f2aa38 jscript: Added support for VT_UI2 VARIANT types.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-01 23:16:07 +01:00
Jacek Caban c25208f2af jscript: Added support for VT_R4 VARIANT types.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-24 08:37:43 +09:00
Jacek Caban 713051d027 jscript: Store local functions in locals map.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-04 09:09:12 -05:00
Jacek Caban db6b86cbbd jscript: Allow Function.apply() to be called on non-jscript objects.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-17 00:09:18 +09:00
Jacek Caban 79361d3bc0 jscript: Added a test of DeleteMembedByDispID returning an error.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-15 20:00:42 +09:00
Jacek Caban 326c1e61b4 jscript: Added 'automagic' test. 2015-06-03 14:47:15 +09:00
Jacek Caban ccccd1c435 jscript: Correctly handle pvarResult in ParseScriptText. 2015-06-01 14:43:28 +09:00
Jacek Caban a1543a3f7b jscript: Fixed handling VT_VARIANT|VY_BYREF types. 2015-02-06 22:20:39 +09:00
Jacek Caban b0632af980 jscript: Added support for VT_UI4 variants. 2015-02-04 21:32:50 +09:00
Jacek Caban a2a57791cd jscript: Added more SCRIPTSTATE_STARTED tests. 2015-01-14 13:18:27 +01:00
Jacek Caban 091738ffdf jscript: Don't allow function execution if script engine is not in started state. 2015-01-14 13:18:24 +01:00
Francois Gouget 861f02b5d1 jscript: Add a trailing '\n' to an ok() call. 2015-01-05 20:16:05 +01:00
Jacek Caban ceaf8bfd83 jscript: Added test of Date object default value. 2014-12-15 14:20:50 +01:00
Jacek Caban 7e43408eaa jscript: Use DISPATCH_PROPERTYPUTREF flag when setting a property to VT_DISPATCH. 2014-11-28 17:05:50 +01:00
Qian Hong 66ba778cad jscript: Ignore BOM mark in next_token. 2014-10-02 20:34:10 +02:00
Jacek Caban fcd9817581 jscript: Implicitly turn CC on for @if instruction. 2014-10-01 10:53:49 +02:00
Jacek Caban 8b36388797 jscript: Implicitly turn CC on for @set instruction. 2014-10-01 10:53:47 +02:00
Jacek Caban 02406d4fd4 jscript: Add DISPATCH_PROPERTYGET flag only for DISPATCH_METHOD call in disp_call_value.
Spotted by Qian Hong.
2014-09-16 21:00:30 +02:00
Jacek Caban cbe63d977c jscript: Added accessing not existing property on IDispatchEx tests. 2014-06-12 18:05:16 +02:00
Jacek Caban 755eac8f0c jscript: Properly handle NULL pvarResult in ParseScriptText. 2014-06-11 19:15:25 +02:00
Jacek Caban 5cf20ceffd jscript: Represent NULL VT_UNKNOWN VARIANT as NULL VT_DISPATCH. 2014-03-19 16:50:34 +01:00
Jacek Caban 71d1df73b5 jscript: Compile tests with -D__WINESRC__. 2013-10-14 17:26:15 +02:00
Jacek Caban 6d8359fcc5 jscript: Run some SunSpider benchmarks in interactive mode. 2013-04-23 17:20:14 +02:00
Jacek Caban 7726e01844 jscript: Don't pass 'this' argument to DISPID_VALUE of pure IDispatch interfaces. 2012-12-24 13:33:14 +01:00
Jacek Caban f780ae0f86 jscript: Fixed deleting property by ID from IDispatchEx interface. 2012-12-17 20:31:19 +01:00
Jacek Caban 2d7a3bb482 jscript: Fixed deleting properties by name from IDispatchEx interface. 2012-12-17 20:31:18 +01:00
Jacek Caban 7202f1a32f jscript: Fixed deleting properties of pure dispatch interface. 2012-12-17 20:31:18 +01:00
Jacek Caban 10c2a2bba4 jscript: Properly handle return value evaluation in comma expression. 2012-12-14 11:54:44 +01:00
Jacek Caban 162f2e6be2 jscript: Moved eval return value logic to specific statement handlers. 2012-12-13 12:24:07 +01:00
Jacek Caban 2c41c4c1cb jscript: Added SCRIPTTEXT_ISEXPRESSION tests. 2012-12-12 20:23:20 +01:00