aboutsummaryrefslogtreecommitdiffstats
path: root/erts/preloaded/src/init.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2017-02-13 15:48:23 +0100
committerHans Bolinder <[email protected]>2017-03-08 14:11:49 +0100
commit97164e67aa45f099ca28213586f2aed781f48ae4 (patch)
treeceae7a4fe3e08dac77ce0d3db433adebdc41dab6 /erts/preloaded/src/init.erl
parent25f818f8f57b6606215ccbf3884b2cec7b30c7b1 (diff)
downloadotp-97164e67aa45f099ca28213586f2aed781f48ae4.tar.gz
otp-97164e67aa45f099ca28213586f2aed781f48ae4.tar.bz2
otp-97164e67aa45f099ca28213586f2aed781f48ae4.zip
erts: Fix handling of locations and annotations
Diffstat (limited to 'erts/preloaded/src/init.erl')
-rw-r--r--erts/preloaded/src/init.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/preloaded/src/init.erl b/erts/preloaded/src/init.erl
index 86dc9a2957..3dc6953b4c 100644
--- a/erts/preloaded/src/init.erl
+++ b/erts/preloaded/src/init.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 1996-2016. All Rights Reserved.
+%% Copyright Ericsson AB 1996-2017. All Rights Reserved.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
@@ -1084,7 +1084,7 @@ start_it({eval,Bin}) ->
{ok,Ts,_} = erl_scan:string(Str),
Ts1 = case reverse(Ts) of
[{dot,_}|_] -> Ts;
- TsR -> reverse([{dot,1} | TsR])
+ TsR -> reverse([{dot,erl_anno:new(1)} | TsR])
end,
{ok,Expr} = erl_parse:parse_exprs(Ts1),
{value, _Value, _Bs} = erl_eval:exprs(Expr, erl_eval:new_bindings()),