Ensure that default value is explicitly initialized in DefineOwnProperty.
TBR: kmillikin Review URL: http://codereview.chromium.org/5781002 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5966 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
79a311cd19
commit
c0c3deb721
@ -615,7 +615,7 @@ function DefineOwnProperty(obj, p, desc, should_throw) {
|
||||
} else {
|
||||
flag |= READ_ONLY;
|
||||
}
|
||||
var value; // Default value is undefined.
|
||||
var value = void 0; // Default value is undefined.
|
||||
if (desc.hasValue()) {
|
||||
value = desc.getValue();
|
||||
} else if (!IS_UNDEFINED(current)) {
|
||||
|
Loading…
Reference in New Issue
Block a user