Amjad Masad
cb833c2321
Expose Parser Interface with a Scan method
2016-04-24 23:01:26 -07:00
deoxxa
f271e0183c
don't try to construct a common type array if there is no type
2016-04-25 11:58:49 +10:00
deoxxa
8dcf49dfe7
amend type sniffing to work with null
2016-04-25 11:58:30 +10:00
deoxxa
8e3ecbc5e3
avoid scope depth check for first stack frame
2016-04-25 11:39:17 +10:00
deoxxa
655561815b
document SetStackDepthLimit tests
2016-04-25 11:36:59 +10:00
deoxxa
029a80224c
document SetStackDepthLimit
2016-04-25 11:36:52 +10:00
xl1
804a9102ab
Speed up builtinArray_sort for array with the same values
2016-04-24 04:52:56 +09:00
Steven Hartland
c619b8fa10
Merge pull request #172 from dop251/remove-redundant-rangeerror-prefixes-fix-tests
...
Fixed tests to match the updated error messages.
2016-04-05 23:39:28 +01:00
Dmitry Panov
25c2e92cec
Fixed tests to match the updated error messages.
2016-04-05 19:10:38 +01:00
Steven Hartland
6c92cd134a
Merge pull request #170 from deoxxa/remove-redundant-rangeerror-prefixes
...
remove redundant RangeError prefixes
2016-04-03 16:17:44 +01:00
deoxxa
17aaeb85c3
remove redundant RangeError prefixes
2016-04-04 00:34:33 +10:00
deoxxa
014e1807a9
remove redundant unnecessary error prefix
2016-04-04 00:32:44 +10:00
deoxxa
da054efc5f
fixes #165 - crash exporting an array with undefined as the first element
2016-04-04 00:25:24 +10:00
deoxxa
c142472392
add simple stack depth limit mechanism
2016-04-04 00:07:41 +10:00
wolfgarnet
ab433a4a50
Improved comment map
...
* More precise
* Line break special cases supported
* Less intrusive
2016-02-22 15:16:41 +01:00
wolfgarnet
1003ce01cb
DotExpression identifier as pointer
2016-02-19 13:15:14 +01:00
wolfgarnet
3b2178bf55
Added FunctionStatement
2016-02-19 13:14:42 +01:00
Conrad Pankoff
53221230c2
Merge pull request #149 from wolfgarnet/commentmap
...
Storing comments in a commentmap
2016-02-19 09:43:13 +11:00
Conrad Pankoff
9c8301a8b3
Merge pull request #163 from deoxxa/external-random-source
...
add support for an external Math.random() provider
2016-02-18 22:10:03 +11:00
deoxxa
fd1eddd0f9
add support for an external Math.random() provider
2016-02-18 22:08:25 +11:00
Steven Hartland
c21072f61b
Merge pull request #157 from kazhuravlev/patch-1
...
Fix example
2016-01-29 12:10:11 +00:00
kazhuravlev
2bebd7b731
Fix example
2016-01-29 14:15:00 +03:00
Christian Wolfgang
d65b096ff3
[ #148 ] Fixed style in lexer
2016-01-17 20:08:44 +01:00
wolfgarnet
54a2be367f
[ #148 ] Fixed style
2016-01-12 12:13:04 +01:00
wolfgarnet
9f65b62899
[ #148 ] Grouped statements
2016-01-12 11:14:02 +01:00
wolfgarnet
c356c94888
[ #148 ] Do not make context switch if not necessary
2016-01-12 11:02:09 +01:00
wolfgarnet
8cd2f8fd93
[ #148 ] Added test parser to set mode
2016-01-12 10:17:29 +01:00
wolfgarnet
3903251f9a
[ #148 ] Updated lexer unit tests
2016-01-12 10:16:25 +01:00
wolfgarnet
6d8bdc96fd
[ #148 ] Added mode to store comments
2016-01-12 10:15:49 +01:00
wolfgarnet
fa2636115f
Added parser benchmark
2016-01-11 14:07:31 +01:00
wolfgarnet
f304d96c25
[ #148 ] Including disabled tests
2016-01-11 09:22:15 +01:00
wolfgarnet
09ad467104
[ #148 ] Lower cased errors
2016-01-11 09:20:14 +01:00
wolfgarnet
36da11f822
[ #148 ] Removed temporary comment variables
2016-01-11 09:16:46 +01:00
wolfgarnet
fc505844b4
[ #148 ] Removed superfluous lines
2016-01-11 09:15:29 +01:00
wolfgarnet
17dd6bba73
[ #148 ] Removed display comment map
2016-01-06 09:25:44 +01:00
wolfgarnet
6cd63e968f
[ #148 ] Added empty expressions instead of nil
...
Instead of having nils for empty array elements, empty expressions are used.
This will add support for comments for empty array elements.
2016-01-04 11:06:22 +01:00
wolfgarnet
b9d17aea26
[ #148 ] Added empty expression
2016-01-04 11:06:04 +01:00
wolfgarnet
af88758381
[ #148 ] Storing comments to a commentmap
2015-12-17 13:50:33 +01:00
deoxxa
089191042f
more tests for Context method
2015-12-06 12:04:12 +11:00
Conrad Pankoff
f28ccbfeea
Merge pull request #147 from darkliquid/issue-145
...
Add Context method to aid debugging
2015-12-06 12:03:00 +11:00
Andrew Montgomery-Hurrell
45c7a8df39
Add Context method to aid debugging
...
This change introduces a Context method to otto that allows developers to get
information about the current execution context. The method returns a Context
struct that contains information such as the filename, line and column of the
current execution, the current value of this, the stacktrace and the available
symbols at the current context.
2015-12-05 18:03:36 +00:00
Conrad Pankoff
cf4c2644df
Merge pull request #146 from deoxxa/add-repl
...
add simple repl
2015-12-05 22:47:07 +11:00
deoxxa
21565ef2e0
add simple REPL
2015-12-05 22:45:57 +11:00
Conrad Pankoff
4a7676e51c
Merge pull request #142 from deoxxa/add-debugger-hook
...
add a way to trigger something with `debugger`
2015-12-05 21:14:00 +11:00
Conrad Pankoff
f18a7b9ae3
Merge pull request #143 from deoxxa/add-external-eval-function
...
add Eval() to execute code in the current vm scope
2015-12-05 21:08:07 +11:00
deoxxa
dea2645a65
comment the crazy test case for Eval
2015-12-05 21:03:55 +11:00
deoxxa
44a4b3115d
support and test Eval() without an existing scope
2015-12-05 20:24:12 +11:00
deoxxa
5a0a713da1
add tests for debugger functionality
2015-12-05 19:27:06 +11:00
deoxxa
7f15b1724e
add a way to trigger something with debugger
2015-12-05 19:25:33 +11:00
deoxxa
9afbdc1417
add test for Eval function
2015-12-05 19:17:57 +11:00