mirror of
https://github.com/robertkrimen/otto
synced 2025-10-12 20:27:30 +08:00
Fix .test262 panic digest
This commit is contained in:
parent
bd12027a22
commit
02385abb6f
|
@ -19,10 +19,12 @@ test-otto:
|
|||
$(TEST) $(WITH_otto)
|
||||
|
||||
test.otto:
|
||||
$(TEST) $(WITH_otto) | tee $@
|
||||
$(TEST) $(WITH_otto) | tee $@.new
|
||||
mv $@.new $@
|
||||
|
||||
test.otto-:
|
||||
$(MAKE) -B test.otto
|
||||
rm -f $(@:-=)
|
||||
$(MAKE) $(@:-=)
|
||||
|
||||
test-v8:
|
||||
$(TEST) $(WITH_v8)
|
||||
|
@ -42,7 +44,8 @@ digest.json: test.otto
|
|||
./digest < test.otto > $@
|
||||
|
||||
digest.json-:
|
||||
$(MAKE) -B digest.json
|
||||
rm -f $(@:-=)
|
||||
$(MAKE) $(@:-=)
|
||||
|
||||
report: digest.json
|
||||
@./report < digest.json
|
||||
|
|
|
@ -33,7 +33,6 @@ while (<STDIN>) {
|
|||
chomp;
|
||||
if (m/^=== (\S+)/) {
|
||||
$test = $1;
|
||||
commit();
|
||||
} elsif (m/^(\S+) passed|as expected$/) {
|
||||
$test = $1;
|
||||
$pass = 1;
|
||||
|
@ -41,6 +40,7 @@ while (<STDIN>) {
|
|||
} elsif (m/^--- (errors|output) ---/) {
|
||||
$read = 1;
|
||||
} elsif (m/^===$/) {
|
||||
commit();
|
||||
$read = 0;
|
||||
} elsif (m/^#/) {
|
||||
next;
|
||||
|
|
|
@ -383,6 +383,12 @@ The return value will (generally) be one of:
|
|||
Date
|
||||
RegExp
|
||||
|
||||
#### func (Value) Export
|
||||
|
||||
```go
|
||||
func (value Value) Export() (interface{}, error)
|
||||
```
|
||||
|
||||
#### func (Value) IsBoolean
|
||||
|
||||
```go
|
||||
|
|
Loading…
Reference in New Issue
Block a user