Skip to content

Commit

Permalink
Note that implementation of CompletePropertyDescriptor is counter to #17
Browse files Browse the repository at this point in the history
.
  • Loading branch information
IgnoredAmbience committed Jun 21, 2018
1 parent 6691f3d commit a4bc92c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions jsref/JsInterpreter.ml
Original file line number Diff line number Diff line change
Expand Up @@ -604,10 +604,10 @@ and to_property_descriptor s _foo_ =

(** Completes a property descriptor by setting default fields.
FIXME: This implementation treats Property Descriptors as value types
WARNING: ⚠️ This implementation treats Property Descriptors as value types
instead of as reference types as the specification intends. This method
is used in the spec as "Call CompletePropertyDescriptor(Desc)" expecting
that Desc will be mutated.
that Desc will be mutated. ⚠️
@essec 6.2.5.6
@esid sec-completepropertydescriptor *)
Expand Down Expand Up @@ -1764,6 +1764,7 @@ and proxy_object_internal_get_own_property s o p =
throw_result (run_error_no_c s Coq_native_error_type)
else
let%spec s, targetDesc = object_internal_get_own_property s (loc_of_value target) p in
(* targetDesc MUST be a full descriptor or undef, by 6.1.7.3 *)
if trapResultObj === Coq_value_undef then
if targetDesc === Descriptor_undef then
res_spec s Descriptor_undef
Expand Down

0 comments on commit a4bc92c

Please sign in to comment.