From 02385abb6f493d30b516b8cd785fd2b0ea2241a7 Mon Sep 17 00:00:00 2001 From: Robert Krimen Date: Wed, 26 Dec 2012 16:59:34 -0800 Subject: [PATCH] Fix .test262 panic digest --- .test262/Makefile | 9 ++++++--- .test262/digest | 2 +- README.markdown | 6 ++++++ 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.test262/Makefile b/.test262/Makefile index 7771e9f..122c9e3 100644 --- a/.test262/Makefile +++ b/.test262/Makefile @@ -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 diff --git a/.test262/digest b/.test262/digest index d1fd25f..fcb8415 100755 --- a/.test262/digest +++ b/.test262/digest @@ -33,7 +33,6 @@ while () { chomp; if (m/^=== (\S+)/) { $test = $1; - commit(); } elsif (m/^(\S+) passed|as expected$/) { $test = $1; $pass = 1; @@ -41,6 +40,7 @@ while () { } elsif (m/^--- (errors|output) ---/) { $read = 1; } elsif (m/^===$/) { + commit(); $read = 0; } elsif (m/^#/) { next; diff --git a/README.markdown b/README.markdown index 22df645..d4ebffe 100644 --- a/README.markdown +++ b/README.markdown @@ -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