ghkweon / dwscript

Automatically exported from code.google.com/p/dwscript
0 stars 0 forks source link

Runtime exception missing ScriptPos data. #440

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The following script results in a runtime exception which does not have any 
ScriptPos data:

var f = 5.0;
f := f / 0;

(AsInfo returns "Runtime Error: Floating point division by zero")

This does not seem to occur when the expression is evaluated as a parameter.

var f = 5.0;
WriteLn(f / 0);

(AsInfo returns "Runtime Error: Floating point division by zero in WriteLn 
[line: 2, column: 1]")

Original issue reported on code.google.com by frederic...@gmail.com on 17 Sep 2013 at 9:11