aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/v4/v8-bench.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/v4/v8-bench.js')
-rw-r--r--tests/manual/v4/v8-bench.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/manual/v4/v8-bench.js b/tests/manual/v4/v8-bench.js
index bfce6231e4..33f39688c2 100644
--- a/tests/manual/v4/v8-bench.js
+++ b/tests/manual/v4/v8-bench.js
@@ -3645,6 +3645,7 @@ Flog.RayTracer.Vector.prototype = {
},
magnitude : function() {
+ // return Math.hypot(this.x, this.y, this.z); but keep results Qt5-comparable:
return Math.sqrt((this.x * this.x) + (this.y * this.y) + (this.z * this.z));
},