Skip to content

Commit 0787d76

Browse files
committed
Fix generation of empty completion value in ecma_reject_put.
Related issue: #114 JerryScript-DCO-1.0-Signed-off-by: Evgeny Gavrin [email protected]
1 parent 69fe619 commit 0787d76

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

jerry-core/ecma/operations/ecma-get-put-value.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ ecma_reject_put (bool is_throw) /**< Throw flag */
226226
}
227227
else
228228
{
229-
return ecma_make_simple_completion_value (ECMA_SIMPLE_VALUE_EMPTY);
229+
return ecma_make_empty_completion_value ();
230230
}
231231
} /* ecma_reject_put */
232232

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Copyright 2015 Samsung Electronics Co., Ltd.
2+
// Copyright 2015 University of Szeged.
3+
//
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
//
8+
// http://www.apache.org/licenses/LICENSE-2.0
9+
//
10+
// Unless required by applicable law or agreed to in writing, software
11+
// distributed under the License is distributed on an "AS IS" BASIS
12+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
// See the License for the specific language governing permissions and
14+
// limitations under the License.
15+
16+
v_1 = 1;
17+
v_1[1] = 1;

0 commit comments

Comments
 (0)