Commit Graph

54 Commits

Author SHA1 Message Date
Sebastian Lackner 69437afed1 jscript: Change prototype of jsstr_alloc_buf and fix some error handling issues.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-08 10:05:46 +09:00
Jacek Caban 4ece40f86b jscript: Return buffer pointer separately from jsstr_t from jsstr_alloc_len. 2013-03-25 14:10:08 +01:00
Jacek Caban c7c71b87b8 jscript: Pass msg as jsstr_t to create_error. 2013-03-08 18:11:05 +01:00
Jacek Caban 55f67035c4 jscript: Use jsstr_flush in Error_toString. 2013-03-05 12:43:18 +01:00
Andrew Talbot 6b5a18f619 jscript: Avoid signed-unsigned integer comparisons. 2013-02-11 11:46:05 +01:00
Jacek Caban ea34e01493 jscript: Use jsdisp_propput_dontenum where appropriate. 2012-11-05 17:44:15 +01:00
Jacek Caban 7f1e3300fe jscript: Use custom string container instead of BSTR. 2012-10-11 18:53:04 +02:00
Jacek Caban 6f5475dd26 jscript: Store exception value in script_ctx_t instead of passing it everywhere. 2012-09-19 13:04:16 +02:00
Jacek Caban acfd2b98c3 jscript: Always use jsval-based to_string implementation. 2012-09-17 18:29:11 +02:00
Jacek Caban 0bab034fac jscript: Always use jsval-based to_number implementation. 2012-09-17 18:28:52 +02:00
Jacek Caban daf0b8dad2 jscript: Store exception value as jsval_t instead of VARIANT. 2012-09-17 18:28:05 +02:00
Jacek Caban 847aebdc87 jscript: Use jsval instead of VARIANT to pass arguments to builtin functions. 2012-09-17 18:27:36 +02:00
Jacek Caban 932b3dd088 jscript: Added new variable representation and use it for internal function return values. 2012-09-17 18:27:17 +02:00
Jacek Caban 27747d3a75 jscript: Properly set Error object's constructor property. 2012-07-16 16:29:45 +02:00
Jacek Caban f8383c3417 jscript: Don't use DISPPARAMS for internal arguments. 2012-06-25 18:12:51 +02:00
Jacek Caban 1532037bcd jscript: Use num_set_int where possible. 2012-06-20 19:21:05 +02:00
Jacek Caban d0a719a79d jscript: Get rid of ret_nan hack. 2012-05-29 18:20:13 +02:00
Jacek Caban 451169fb93 jscript: Return double instead of VARIANT from to_number. 2012-03-27 11:43:01 +02:00
Jacek Caban 84ed86c431 jscript: Get rid of no longer needed caller argument from builtin_invoke_t. 2012-03-14 17:34:00 +01:00
Jacek Caban 0d9cc45406 jscript: Removed no longer needed caller argument from jsdisp_propget_name. 2012-03-12 16:37:21 +01:00
Jacek Caban 12bc6e0cc7 jscript: Removed no longer needed caller argument from jsdisp_propput_name and jsdisp_propget. 2012-03-12 16:37:20 +01:00
Jacek Caban 7774a0a4c1 jscript: Pass HRESULTs instead of IDSs to throw_* functions. 2010-12-28 16:35:41 +01:00
Alexandre Julliard 33d091fef6 jscript: Remove an incorrect and unnecessary error check. 2010-10-11 12:54:17 +02:00
Jacek Caban 2ae0f44033 jscript: Added a helper function for setting VARIANT value to jsdisp_t. 2010-09-07 16:01:46 +02:00
Jacek Caban 8c2a548b54 jscript: Rename DispatchEx to jsdisp_t to match jscript naming convention. 2010-09-06 17:09:57 +02:00
Jacek Caban 884b76657c jscript: Get rid of no longer needed ErrorInstance struct. 2010-08-04 17:32:05 +02:00
Jacek Caban ae8cb5a1e6 jscript: Fixed Error.toString implementation for non-Error this. 2010-08-04 17:31:59 +02:00
Jacek Caban 04819e9066 jscript: Use generic property for Error.message. 2010-08-04 17:31:51 +02:00
Jacek Caban 96990cfa8e jscript: Use generic property for Error.description. 2010-08-04 17:31:46 +02:00
Jacek Caban 6263f0079a jscript: Use generic property for Error.number. 2010-08-02 14:09:26 +02:00
Rob Shearman 9dc584d0a2 jscript: Fix various memory and reference count leaks. 2009-12-31 14:27:06 +01:00
Francois Gouget 5d06095dfb jscript: We don't need throw_eval_error() so remove it. 2009-11-16 12:43:06 +01:00
Jacek Caban 86e7beae82 jscript: Added Error.toString implementation for invoke version >= 2. 2009-10-20 13:48:13 +02:00
Piotr Caban 662a8525f4 jscript: Fixed Global functions lengths. 2009-10-14 11:23:40 +02:00
Jacek Caban 6d4533a8f8 jscript: Added ActiveXObject constructor implementation. 2009-09-30 16:28:17 +02:00
Jacek Caban f8c2b42de4 jscript: Allow 'this' to be host object in builtin functions. 2009-09-23 16:25:23 +02:00
Jacek Caban 5dcd182e8f jscript: Avoid using dispex->ctx. 2009-09-23 16:25:13 +02:00
Jacek Caban 5511f7173f jscript: Pass script_ctx_t to builtin functions. 2009-09-23 16:19:44 +02:00
Jacek Caban f14c5f074a jscript: Get rid of lcid argument in builtin function implementations. 2009-09-23 16:19:31 +02:00
Jacek Caban fadfab5ff6 jscript: Use script LCID in *disp_propput* functions. 2009-09-23 16:19:11 +02:00
Jacek Caban 9e523c6130 jscript: Added RegExp function call implementation. 2009-09-23 16:18:41 +02:00
Jacek Caban d918a1890b jscript: Added Function.toString implementation for builtin functions. 2009-09-17 10:07:51 -05:00
Jacek Caban c444a4907e jscript: Code clean up. 2009-09-01 15:59:10 +02:00
Piotr Caban 28734e3756 jscript: Inherit some Error functions from Object. 2009-08-14 13:59:10 +02:00
Piotr Caban 98223b96e7 jscript: Throw SyntaxError in eval function. 2009-07-24 11:44:53 +02:00
Piotr Caban 8dd1d9b92e jscript: Throw TypeErrors when _value functions are used as a function. 2009-07-22 14:42:50 +02:00
Piotr Caban d8e841ca50 jscript: Throw 'undefined object' error. 2009-07-22 14:42:50 +02:00
Piotr Caban a77e369cfe jscript: Add Error_number handling to constructor and error throwing functions. 2009-07-21 11:04:34 +02:00
Piotr Caban f3eef0d4c8 jscript: Added Error_number and Error_description implementation. 2009-07-21 11:04:16 +02:00
Piotr Caban 7c0a702001 jscript: Added Error_description and Error_number stubs. 2009-07-21 11:04:13 +02:00