RSS feed
86feee5b
– Tor Andersson <tor.andersson@artifex.com>
authored
and Tor Andersson <tor.andersson@gmail.com>
committed
on 2016/12/23 11:13
Pacify valgrind: it doesn't know realloc(p, 0) is equivalent to free(p).
eafe7943
– Tor Andersson <tor.andersson@artifex.com>
authored
and Tor Andersson <tor.andersson@gmail.com>
committed
on 2016/12/19 12:52
Handle non-tty stdin more gracefully in example shell tool.
fd003ece
– Tor Andersson <tor@ccxvii.net>
authored
on 2016/12/02 09:56
Fix 697381: check allocation when compiling regular expressions.
129dff49
– Tor Andersson <tor@ccxvii.net>
authored
on 2016/11/17 11:21
Silence gcc 6 indentation warning.
a0ceaf50
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2016/10/31 09:05
Fix 697244: Check for incomplete escape sequence at end of input.
b6de34ac
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2016/10/31 08:58
Fix 697281: numeric overflow in regular expression repetition count.
50081057
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2016/10/26 10:31
Fix 697172: degenerate labeled break/continue statement.
a5c747f1
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2016/10/25 10:08
Fix 697171: missed an operand in the bytecode debugger dump.
5c337af4
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2016/09/21 12:01
Fix bug 697142: Stale string pointer stored in regexp object.
5000749f
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2016/09/21 12:02
Fix bug 697141: buffer overrun in regexp string substitution.
8c805b4e
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2016/09/21 11:21
Fix bug 697140: Overflow check in ascii division in strtod.
a3a4fe84
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2016/09/20 13:19
Fix bug 697137: off by one in string length calculation.
f8234d83
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2016/09/20 13:11
Fix bug 697136.
b3dece5f
– Robin Watts <robin.watts@artifex.com>
authored
on 2016/09/14 12:04
Make some static functions static inline.
805e0f0f
– Tor Andersson <tor@ccxvii.net>
authored
on 2016/09/09 15:56
Add js_newobjectx to create an object with a specific prototype object.
a4158ae6
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2016/07/04 11:19
Fix call stack overflow triggering off-by-one too late.
9219eca1
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2016/06/23 09:54
Fix JSON formatting of strings with unicode characters.
89793bba
– Tor Andersson <tor.andersson@artifex.com>
authored
and Robin Watts <robin.watts@artifex.com>
committed
on 2016/06/02 07:52
Fix Object.prototype.toString when called with null or undefined this.
066a0674
– Robin Watts <robin.watts@artifex.com>
authored
on 2016/06/10 11:19
Correct #ifdeffery for VS 2012
c596dd58
– Tor Andersson <tor@ccxvii.net>
authored
on 2016/06/01 11:22
Fix stack trace off-by-one error when skipping the top level entry.
1930f359
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2016/05/04 08:13
Fix \s and \S ranges in regular expression.
1b5cc3a0
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2016/04/28 09:33
Improve debugging stack trace print-out.
361b6ca9
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2016/04/28 09:15
Add CheckObjectCoercible in String prototype functions.
e4c77a78
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2016/04/28 09:04
Handle null/undefined argArray in Function.prototype.apply().
a2fcfd69
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2016/04/28 08:57
Define built-in functions with the full name.
4b68d523
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2016/04/28 08:48
Add js_iscoercible function.
5aed7d6e
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2016/04/28 08:40
Fix bug in Function.prototype.bind().
3e3c382a
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2016/04/27 12:26
Avoid using 'unsigned int'.
7c7a9cd7
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2016/04/27 11:54
Oops! Forgot to use the allocator in a few places...
44842719
– Tor Andersson <tor@ccxvii.net>
authored
on 2016/04/19 11:36
Fix typo in parseInt: radix was limited to 2-32 but it should be 2-36.
c90c3232
– Tor Andersson <tor@ccxvii.net>
authored
on 2016/04/15 08:18
Fix bugs introduced when moving from argc to js_gettop.
aba66442
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2016/03/01 16:52
Add delete callback to userdata objects.
2db68ab8
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2016/03/01 16:51
Chain if-else statements in has/put/delproperty.
624f975a
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2016/02/22 15:19
Set the internal length attribute for C constructors.
0b71921d
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2016/02/05 12:24
Document js_try and js_endtry.
7bbec417
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2016/02/05 11:43
Add callback example to docs to show how to use js_ref.
a462ed44
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2016/02/01 09:00
Don't use unsafe _snprintf on MSVC older than 2015.
0fd82b60
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2016/01/18 08:33
Make js_try, js_savetry and js_endtry public functions/macros.
f5b3d15f
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2016/01/12 11:42
Make convenience stack manipulation functions public.
4e6c74b5
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2016/01/11 12:02
Add userdata has/put callbacks for custom properties.
d800b59f
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2016/01/06 08:43
Clean up stack on errors in js_pcall and js_pconstruct.
c1c637b7
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2015/12/17 06:24
Implement js_replace.
0b9d3be3
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2015/12/16 06:49
Remove 'report' argument from js_dostring.
08276111
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2015/09/29 06:18
Add documentation.
26996070
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2015/09/28 11:27
Rework try macros to simplify setjmp expression.
17019d29
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2015/04/08 10:05
Rewrite parseInt to follow spec.
78ed7e6a
– Tor Andersson <tor@ccxvii.net>
authored
on 2015/09/14 07:57
Use fabs rather than integer abs for taking absolute value of floats.
eed76191
– Tor Andersson <tor@ccxvii.net>
authored
on 2015/08/14 08:05
Rename our internal regex.h to not collide with system regex.h.
c1ad1ba1
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2015/02/02 12:27
Fix mistake when compiling array literals.
d9ed73fd
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2015/01/07 11:54
strict mode: 'this' is undefined for normal function calls.
d05415b0
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2015/01/07 19:00
strict mode: No redefining 'eval' or 'arguments'.
44c0e12d
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2015/01/07 17:37
strict mode: Check duplicate property names.
63a542aa
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2015/01/07 16:34
strict mode: No duplicate formal parameters.
62c6e3f6
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2015/01/07 16:33
strict mode: No delete operator with an unqualified name.
543115ba
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2015/01/07 13:08
strict mode: Errors when extending non-extensible objects.
91dc20d3
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2015/01/07 13:06
strict mode: Errors on read-only and non-configurable properties.
b51b05b2
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2015/01/07 12:24
strict mode: No automatic creation of global variables.
7bdfc5e2
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2015/01/07 12:08
strict mode: No arguments.callee property.
ffa8de1f
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2015/01/07 11:47
strict mode: eval code is evaluated in its own scope.
e9f4ecc3
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2015/01/07 11:45
strict mode: No 'with' statements allowed.
8f790df9
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2015/01/07 11:45
Add strict mode flag to constructor.
c6d17c7f
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2015/01/14 07:01
Add finalize callback to userdata objects.
40dd4a25
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2015/01/08 10:44
Add eval op-code to implement proper 'this' binding for eval code.
e673ae66
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2015/01/08 10:18
Clean up some error messages.
05c2ee9e
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2015/01/08 09:28
Use last resort '[object]' ToPrimitive rather than throwing an error.
cb6facdf
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2015/01/08 09:16
Remove redundant type checking in iterator opcode.
b0059285
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2015/01/05 14:59
Add paranoid asserts to check js_Value struct layout and alignment.
c1edf586
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2015/01/05 14:38
Apply short string changes in jsvalue.c as well.
9281c68b
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2015/01/05 12:32
Use offsetof instead of hardcoded short string length.
3ceaeb15
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2015/01/05 12:09
Use manual loop instead of memcpy/strcpy when creating short strings.
1a1d2669
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2015/01/05 09:03
Annotate fall through switch cases.
9b151f15
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2015/01/05 08:10
Fix test for empty string in String.prototype.split with regexp.
5e3e9fdd
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2015/01/05 08:03
Check error for all fseek/ftell calls.
13c7d26d
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2015/01/05 07:57
Deoptimize isalpha macro due to potential overflow errors.
15ef29e7
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2015/01/02 08:47
Use memcpy instead of strcpy when copying short strings.
b4fb1266
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2015/01/02 08:39
Rename next/accept/expect macros in lexer and parser.
0ac4cce8
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2015/01/02 08:39
Fix bound checks in jsdump.
720aec8c
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2015/01/02 08:38
Fix memory leak when freeing js_State.
9bc5fec0
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2014/12/11 11:45
Fix makefile issues.
031513b2
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/12/02 20:18
Add stack traces to error objects.
5a486710
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2014/12/01 11:41
Clean up cassign[op] arguments.
8c566e16
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2014/11/29 15:00
Fix bug in js_pushlstring.
6fa0097d
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2014/11/29 11:16
Silence GCC warning.
84faaff8
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2014/11/29 11:12
Add user context pointer and flag argument to js_State constructor.
65383080
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2014/11/29 11:01
Add short strings (with data embedded in js_Value).
4eae3ec1
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2014/11/29 08:59
Make js_toprimitive (and by consequence js_tonumber/string/...) in-place.
7bb55ad3
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2014/11/29 07:39
Add js_itoa for faster conversion of unsigned int to string.
0cbd5326
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2014/11/28 11:02
Garbage collect (some) strings.
6afabf44
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2014/11/17 10:31
Fix ifdef order to allow building jsdate on cygwin.
95e5aebc
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2014/11/17 10:26
Remove duplicate js_newerror prototype.
bc51de87
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2014/11/17 07:21
Use of try/catch must disqualify a function from being lightweight.
4a7ffbf2
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2014/11/10 07:19
Fix bug in Math.random().
339abac8
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2014/11/07 11:07
Optimize js_stringtofloat to use integer conversion when possible.
9f181651
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2014/11/07 11:00
Track array sparseness to be smarter in jsV_resizearray.
9ded251f
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2014/11/05 20:17
Oops. Remove stray printf.
98744d09
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2014/11/05 12:36
Fix bug in Array.prototype.splice().
9ed09147
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2014/11/05 12:35
Fix bug in js_setlength when used for relative indices.
a9e6b4cd
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2014/11/01 09:01
Fix bug in maintaining property enumeration list.
051d504c
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2014/10/31 12:58
Add missing js_endtry call in Fp_toString.
3f69364c
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2014/10/28 09:44
JSON.stringify: support 'space' argument.
Next