Steven Hartland
9297a9abe4
feat: add github action tests and linting ( #418 )
...
Leverage github actions for tests and linting.
This includes fixing a bunch of issues highlighted by golangci
including:
* Dead code.
* Ineffectual assigns.
* Goto warnings.
* Nil return err.
* Reused literal strings.
* Test parameter order.
Also:
* Setup clog.
2021-09-27 16:19:28 +01:00
Robert Krimen
709a0aa7ff
Value.string(), .float64(), .bool(), etc.
2014-06-06 21:29:40 -07:00
Robert Krimen
918abeb8d8
The zero value of Value is now defined to be undefined
...
Previously, it was a publically accessible but invalid value (valueEmpty).
* Deprecate internal use of UndefinedValue(), NullValue(), FalseValue(), TrueValue()
* Guard against Empty, Result, Reference values from escaping the package
2014-05-28 21:23:32 -07:00
Robert Krimen
9cd045ef04
Simplification & refactor of (parts of) the runtime
...
* Proper lowercasing for internal stuff
* *Environment => *_stash
* ExecutionContext => _scope
* Simpler & shallower call/construct mechanics
* Remove unnecessary fields & methods
* Better scoping (no more stack): []*_scope => _scope.outer
* Some speed improvements
In preparation for #66
2014-05-27 22:05:35 -07:00
Robert Krimen
4ebf6416d0
Fix Uint32 Array/String indexing
...
Also, a bunch of toValue_* streamlining
And maybe a few miscellaneous tweaks
2013-06-22 15:49:22 +02:00
Robert Krimen
98a80a628d
Add RegExp.compile
...
This (useless) function is deprecated, but is here to provide some
semblance of compatibility.
Caveat emptor: it may not be around for long.
2013-06-15 17:17:58 -07:00
Robert Krimen
74a8739188
Cannot supply flags when constructing one RegExp from another
2013-05-02 20:23:06 +02:00
Robert Krimen
de97589c43
RegExp(/xyzzy/) & RegExp(/xyzzy/, undefined) will return a reference to the exact same /xyzzy/ object...
...
...instead of creating a new copy
2013-05-02 20:23:06 +02:00
Robert Krimen
ec902a6452
Split builtin.go out to builtin_*.go
2013-02-20 15:58:45 -08:00