localvoid / vdom-benchmark

Virtual DOM diff/patch benchmark
BSD 2-Clause "Simplified" License
49 stars 10 forks source link

Breaks in Safari 7 #13

Open stevenvachon opened 9 years ago

stevenvachon commented 9 years ago

On page load:

[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (index.dart, line 0)

After clicking "Run" under VirtualDom:

[Error] Uncaught Error: NullError: Cannot call "now" on null
Stack Trace:
l@https://localvoid.github.io/vdom-benchmark/js/main.js:1:34973
VirtualDom@https://localvoid.github.io/vdom-benchmark/js/main.js:1:1126
V7@https://localvoid.github.io/vdom-benchmark/index.dart.js:4704:23
$1@https://localvoid.github.io/vdom-benchmark/index.dart.js:5260:30
$0@https://localvoid.github.io/vdom-benchmark/index.dart.js:2449:31
HJ@https://localvoid.github.io/vdom-benchmark/index.dart.js:2292:11
$0@https://localvoid.github.io/vdom-benchmark/index.dart.js:2446:12
HJ@https://localvoid.github.io/vdom-benchmark/index.dart.js:2292:11
$1@https://localvoid.github.io/vdom-benchmark/index.dart.js:2456:10
m1@https://localvoid.github.io/vdom-benchmark/index.dart.js:2990:27
https://localvoid.github.io/vdom-benchmark/index.dart.js:3023:33
ww@https://localvoid.github.io/vdom-benchmark/index.dart.js:2316:5
lQ@https://localvoid.github.io/vdom-benchmark/index.dart.js:2309:29
https://localvoid.github.io/vdom-benchmark/index.dart.js:5254:12
FI@https://localvoid.github.io/vdom-benchmark/index.dart.js:3010:44
$0@https://localvoid.github.io/vdom-benchmark/index.dart.js:2611:23
HZ@https://localvoid.github.io/vdom-benchmark/index.dart.js:2569:47
HH@https://localvoid.github.io/vdom-benchmark/index.dart.js:2503:5
$0@https://localvoid.github.io/vdom-benchmark/index.dart.js:2438:14
https://localvoid.github.io/vdom-benchmark/index.dart.js:924:10
$0@https://localvoid.github.io/vdom-benchmark/index.dart.js:1512:31
vV@https://localvoid.github.io/vdom-benchmark/index.dart.js:577:11
zd@https://localvoid.github.io/vdom-benchmark/index.dart.js:376:28
https://localvoid.github.io/vdom-benchmark/index.dart.js:1053:49
https://localvoid.github.io/vdom-benchmark/index.dart.js:1063:54
    $0 (index.dart.js, line 2978)
    Ki (index.dart.js, line 2686)
    Cx (index.dart.js, line 2325)
    (anonymous function) (index.dart.js, line 2327)
    (anonymous function) (index.dart.js, line 2407)
    $0 (index.dart.js, line 1515)
    vV (index.dart.js, line 577)
    zd (index.dart.js, line 376)
    (anonymous function) (index.dart.js, line 1054)
    (anonymous function) (index.dart.js, line 1063)
localvoid commented 9 years ago

404 error can be ignored, I am just too lazy to remove it when deploying, or add any tools that will automatically do this.

I don't have a Mac to test it on Safari, but it seems that it can't find "window.performance" object on Safari. I thought that all modern browsers have support for high resolution timestamps.