1
0
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:
Robert Krimen 2012-12-26 16:59:34 -08:00
parent bd12027a22
commit 02385abb6f
3 changed files with 13 additions and 4 deletions

View File

@ -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

View File

@ -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;

View File

@ -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