Commit Graph

  • 144c3ba874 Fix assertion 'mem_pools == NULL' in the Date constructor. Roland Takacs 2015-07-30 10:55:38 +02:00
  • fe475eace7 Use ToNumber when checking lastIndex during RegExp exec() Dániel Bátyai 2015-07-28 19:09:44 +02:00
  • 048e20925e Implement String.prototype.replace function. Zoltan Herczeg 2015-07-29 04:45:04 -07:00
  • 39cf5aaa7c Fix RegExp constructor when called with undefined arguments Dániel Bátyai 2015-07-29 10:45:29 +02:00
  • 1193de88cc Use [[DefineOwnProperty]] in Array builtins where necessary. Dániel Bátyai 2015-07-21 13:21:19 +02:00
  • 8cd1ade515 Fix primitive value handling in Date constructor Kristof Kosztyo 2015-07-27 13:08:58 +02:00
  • 801e8e34cd Test lastIndex calculation for exec calls Peter Gal 2015-07-20 19:44:18 +02:00
  • 41aef56cba Rename isalpha, isdigit and replace characters with their corresponding constant. Zoltan Herczeg 2015-07-28 05:44:52 -07:00
  • 3fbe54393f Make parseInt unicode tolerant. Peter Gal 2015-07-24 14:43:08 +02:00
  • 382b2b48b7 Optimize lit_find_literal_by_utf8_string by adding hash comparison. Andrey Shitov 2015-07-27 17:45:32 +03:00
  • 9766feda2e Change jerry_api_string_to_char_buffer so it doesn't add '\0' to the end of output buffer. Andrey Shitov 2015-07-24 21:49:12 +03:00
  • 656908ecaf Optimize lit_char_is_unicode_letter. Andrey Shitov 2015-07-27 17:33:54 +03:00
  • 502f4c4623 Split opcode and instruction entities and perform related renamings: opcode_t is now vm_instr_t, opcode position is instruction position, etc. Ruben Ayrapetyan 2015-07-21 19:14:06 +03:00
  • 1990762cf0 Add opcode description table containing an opcode's name, name and possible type of the opcode's arguments. Ruben Ayrapetyan 2015-07-20 21:53:40 +03:00
  • 25450d8a12 Error constructor prototypes should be Function Peter Gal 2015-07-22 18:14:45 +02:00
  • f1248b9780 Fix Number.prototype.toString() when radix is undefined. Dániel Bátyai 2015-07-21 14:34:24 +02:00
  • b5da46f2aa Fix segmentation fault in Date helper functions Szilard Ledan 2015-07-20 14:16:46 +02:00
  • e34ab90e61 RegExp: treat undefined argument as empty. Peter Gal 2015-07-20 13:12:52 +02:00
  • 336db40ed0 Segmentation fault in JSON.stringify() Roland Takacs 2015-07-15 14:49:54 +02:00
  • 2e0334ccb2 Returned array of Array.prototype.map() should have same length as original. Dániel Bátyai 2015-07-20 10:53:07 +02:00
  • fc45b80579 Fix Array.prototype.toLocaleString() when toLocaleString returns non-string. Dániel Bátyai 2015-07-22 16:23:29 +02:00
  • b11007055d Fix buffer size calculation in Number.prototype.toString() Dániel Bátyai 2015-07-22 15:06:50 +02:00
  • fec5933a3d Fix Array.prototype.push() and unshift() in case result length is larger than UINT_MAX Dániel Bátyai 2015-07-23 18:09:19 +02:00
  • b5de03a808 Improve Infinity handling in Math.min/max methods. Peter Gal 2015-07-22 16:08:29 +02:00
  • 3c71daaf84 Use unicode iterators in RegExp engine and implement \d, \D, \w, \W, \s, \S, \x, \u matching in RegExp. László Langó 2015-07-22 09:17:37 +02:00
  • 6567651b6c Fix Array index normalize helper when index is large. Dániel Bátyai 2015-07-23 13:55:54 +02:00
  • ee8d65063f Fix parseInt when passing empty string. Peter Gal 2015-07-17 15:25:31 +02:00
  • 33be4883a2 Fix Array.prototype.splice() deletecount calculation Zsolt Borbély 2015-07-20 09:01:36 +02:00
  • 64c81cc44d Implement String.prototype.indexOf() Laszlo Vidacs 2015-07-21 16:17:02 +02:00
  • ed16f09019 Implement Date.prototype.toJSON() Roland Takacs 2015-07-15 16:23:59 +02:00
  • 021fc62652 Fix endian detection on 32bit Peter Gal 2015-07-16 19:32:56 +02:00
  • 9513808647 Fix Array.prototype.concat() when 'this' is not an array. Dániel Bátyai 2015-07-15 14:45:31 +02:00
  • 27161d31df Fix leak in Array.prototype.indexOf() when 'fromIndex' can't coerce to primitive value. Dániel Bátyai 2015-07-17 10:44:48 +02:00
  • 11c310322b Implement String.prototype.match Peter Gal 2015-07-21 16:12:16 +02:00
  • 63083b3b51 Implement date.prototype.toISOString() and date.prototype.toUTCString() Roland Takacs 2015-07-20 13:16:32 +02:00
  • d11dfc5703 Fix syntax check of literal duplication in FormalParameterList (strict mode). Ruben Ayrapetyan 2015-07-15 22:49:08 +03:00
  • 352e8f5c04 Minor stylefixes for the Array builtin Zsolt Borbély 2015-07-17 10:17:55 +02:00
  • cdf361c2bd Reorder Array builtin functions Zsolt Borbély 2015-07-15 09:36:09 +02:00
  • 6ade8dfebb Fix preparse_scope - consider nesting level during search for identifier tokens. Ruben Ayrapetyan 2015-07-21 16:23:35 +03:00
  • 31894da098 Move ecma-stack to vm component, renaming it to vm-stack. Ruben Ayrapetyan 2015-07-20 17:59:50 +03:00
  • 7dcaf06793 Rename int_data_t -> vm_frame_ctx_t, vm_frame_ctx_t* variables from int_data / int_data_p -> frame_ctx_p. Ruben Ayrapetyan 2015-07-20 16:39:56 +03:00
  • a2c6663d43 Array.prototype.sort() now handles defined properties only. Dániel Bátyai 2015-07-14 13:25:11 +02:00
  • 9d6e7bf336 Array.prototype.sort() should sort in place. Dániel Bátyai 2015-07-08 11:24:32 +02:00
  • 7c1622855d Fix the infinite loop in ecma_date_year_from_time Szilard Ledan 2015-07-17 13:50:39 +02:00
  • 9edae36b00 Fix assertion fail in ecma_date_make_day Szilard Ledan 2015-07-16 18:43:52 +02:00
  • c7a47c1791 Implement String.prototype.charCodeAt() Laszlo Vidacs 2015-07-09 11:37:34 +02:00
  • 7b3042fdc9 Remove usage of isalpha, isdigit, isxdigit, isspace in the whole engine except implementation of JSON built-in, moving the functions to JSON built-in's module. Ruben Ayrapetyan 2015-07-03 02:17:14 +03:00
  • bcedc901cd Add \u parse support for the JSON object. Buffer overrun issues were fixed as well. Zoltan Herczeg 2015-07-20 01:03:51 -07:00
  • bbfddea032 Fix Date(Number.POSITIVE_INFINITY) assertion fail in the Date constructor Szilard Ledan 2015-07-16 15:31:07 +02:00
  • 6038173e76 Rename make target build_all to $(BUILD_ALL) Akos Kiss 2015-07-15 18:11:17 +02:00
  • 8d9658913b Get all phony targets declared Akos Kiss 2015-07-15 17:47:47 +02:00
  • f8ee565016 Split independent commands in make recipes Akos Kiss 2015-07-15 17:00:28 +02:00
  • 1a4e66a013 Extend non-quiet make mode with log echo Akos Kiss 2015-07-15 16:14:40 +02:00
  • f4c24f063d Enable non-quiet make Akos Kiss 2015-07-15 15:27:39 +02:00
  • 68b9fb54d5 Turn off Date and RegExp built-in objects in compact profile. Ruben Ayrapetyan 2015-07-16 20:00:28 +03:00
  • 351df6184c Add locale part of the toString in the Date object Szilard Ledan 2015-07-16 10:51:18 +02:00
  • b414329ce8 Fix Array.prototype.concat() argument array length. Dániel Bátyai 2015-07-15 11:10:38 +02:00
  • db9b74a114 Fix buffer size calculation in parseInt. Peter Gal 2015-07-14 13:28:32 +02:00
  • d2457b1fc6 Add missing RegExp case in the token_type_to_string Szilard Ledan 2015-07-15 10:25:55 +02:00
  • 4fdb5249b9 Restore "Fix preparsing of variable declaration lists, which are not divided by a semicolon." 06d0c1806d) that was incorrectly removed in abc2b55297. Andrey Shitov 2015-07-15 18:24:51 +03:00
  • abc2b55297 Fix dump of arguments / eval usage hint in preparse_scope. Ruben Ayrapetyan 2015-07-14 21:11:03 +03:00
  • 005eb044a9 Implement builtin setters for Date object Szilard Ledan 2015-07-07 10:16:23 +02:00
  • 7bc2c69147 Temporary workaround (until parser is refactored) for fixing parse of expressions like '1 = 1'. Ruben Ayrapetyan 2015-07-13 21:22:57 +03:00
  • 44b7b95781 Add support of ReferenceError early error to parser. Ruben Ayrapetyan 2015-07-13 21:58:38 +03:00
  • 06d0c1806d Fix preparsing of variable declaration lists, which are not divided by a semicolon. Andrey Shitov 2015-07-10 18:35:06 +03:00
  • 051c7b6786 Implement Date.prototype.toDateString and Date.prototype.toTimeString László Langó 2015-07-10 10:39:49 +02:00
  • 84f09ffcd9 Follow up fix for Date.prototype.toString László Langó 2015-07-13 11:03:54 +02:00
  • dcc704d1e8 Add missing case for backspace control character in JSON.parse() Roland Takacs 2015-07-15 11:18:37 +02:00
  • 8aeb2a055e Fix underflow in JSON.stringify() Roland Takacs 2015-07-15 12:12:35 +02:00
  • f625473f9a Implement String.prototype.localeCompare function Zsolt Borbély 2015-07-13 15:36:37 +02:00
  • e5b2e1e389 Number.prototype functions should throw TypeError if 'this' is not number. Dániel Bátyai 2015-07-10 14:03:28 +02:00
  • c8a16f2107 Improve Function constructor argument handling. Peter Gal 2015-07-10 15:29:43 +02:00
  • 292d99ba4e Fix assertion 'bytes_copied > 0' in JSON.stringify() Roland Takacs 2015-07-14 12:10:20 +02:00
  • 7ccec19c26 Fix strict mode in an object initializer's getters / setters definition. Ruben Ayrapetyan 2015-07-10 21:35:49 +03:00
  • 4f58104981 Fix checking of semicolons in expression statements. Andrey Shitov 2015-07-13 20:58:16 +03:00
  • 0e8cb596d7 Fix parse of preincrement / predecrement, applied to 'obj.prop'-like expressions. Ruben Ayrapetyan 2015-07-14 22:30:24 +03:00
  • 6fe78cc994 Temporary workaround (until parser is refactored) for fixing evaluation of simple 'identifier'-like expressions. Ruben Ayrapetyan 2015-07-13 21:22:16 +03:00
  • 5e329c815c Fix syntax checking of large object literals. Ruben Ayrapetyan 2015-06-29 20:45:17 +03:00
  • 73d082aa55 Fix parse of delete operator. Ruben Ayrapetyan 2015-07-14 20:42:53 +03:00
  • c120433158 Fix handling of EOF in insert_semicolon. Ruben Ayrapetyan 2015-07-10 22:27:38 +03:00
  • cf9d54545f Style fixes for RegExp engine. László Langó 2015-07-10 15:57:06 +02:00
  • 1e90f833f7 Implement Function.prototype.bind function Zsolt Borbély 2015-07-07 10:11:43 +02:00
  • 92bf7859af Put lexer_init after setjmp in parser_parse_program, as lexer_init could raise an early error. Ruben Ayrapetyan 2015-07-14 16:29:52 +03:00
  • 1195c197e8 Fix syntax checking for line terminators inside regular expressions. Andrey Shitov 2015-07-14 17:29:13 +03:00
  • f3ef9afb91 Fix handling of invalid HexIntegerLiterals in lexer. Andrey Shitov 2015-07-14 15:58:31 +03:00
  • 69655f4456 Implement toLowerCase and toUpperCase built-in functions. Zoltan Herczeg 2015-07-14 05:52:12 -07:00
  • bc0ca7be5d Add heap size limit to solve #342 SaeHie Park 2015-07-11 22:46:13 +09:00
  • 0927888b44 External build fix Added generic build for none linux platforms, as nuttx has be removed by #330 SaeHie Park 2015-07-10 08:59:14 +09:00
  • aa415c670e Fix initialization of 'this' argument in 'call_n' opcode handler. Ruben Ayrapetyan 2015-07-11 01:20:06 +03:00
  • c84d31ce9e Fix sign of number remainder (ecma_op_number_remainder). Ruben Ayrapetyan 2015-07-11 00:08:12 +03:00
  • f8770020f7 Update RegExp.prototype.exec so that it returns 'null' instead of 'undefined' in case argument doesn't match corresponding regular expression. Ruben Ayrapetyan 2015-07-10 23:39:26 +03:00
  • 8aa2571699 Fix NaN handling in ecma_op_same_value. Ruben Ayrapetyan 2015-07-10 19:42:09 +03:00
  • 710a18d6af Add 'length' property of String.prototype built-in object. Ruben Ayrapetyan 2015-07-10 23:07:02 +03:00
  • cf2bc459bb Support unicode whitespaces in string-to-number conversion. Andrey Shitov 2015-07-10 20:01:43 +03:00
  • b3fa7d9765 Fix function skipping in preparse_scope: properly detect usage of 'function' keyword as property name. Andrey Shitov 2015-07-10 14:41:08 +03:00
  • 7f1a7981b9 Support true, false, null as property names. Andrey Shitov 2015-07-10 13:55:40 +03:00
  • 60bd718fb5 Fix assertion !lit_utf8_iterator_is_eos (iter_p) in lexer. Andrey Shitov 2015-07-10 14:49:50 +03:00
  • 64bbf2752e Fix printing of the source line with syntax error. Andrey Shitov 2015-07-10 14:47:56 +03:00
  • 13cf31413f Fix EXTERNAL_LIBC_INTERFACE check with USE_COMPILER_DEFAULT_LIBC Related with #331 SaeHie Park 2015-07-09 09:46:41 +09:00
  • 9c559216b7 Primitive value of Date.prototype should be NaN László Langó 2015-07-10 11:27:50 +02:00