Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jsexplain
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Verified Software
jsexplain
Commits
52daf03f
Commit
52daf03f
authored
8 years ago
by
Thomas Wood
Browse files
Options
Downloads
Patches
Plain Diff
Add [[Prototype]] to object listing
parent
f1ce6a10
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
navig-driver.js
+9
-0
9 additions, 0 deletions
navig-driver.js
with
9 additions
and
0 deletions
navig-driver.js
+
9
−
0
View file @
52daf03f
...
...
@@ -817,6 +817,9 @@ function show_object(state, loc, target, depth) {
var
key_value_pair_array
=
encoded_list_to_array
(
HeapStr
.
to_list
(
props
));
//
var
is_global
=
(
string_of_loc
(
loc
)
==
"
global
"
);
key_value_pair_array
.
push
([
"
[[Prototype]]
"
,
obj
.
object_proto_
]);
for
(
var
j
=
0
;
j
<
key_value_pair_array
.
length
;
j
++
)
{
var
i
=
key_value_pair_array
.
length
-
j
-
1
;
var
prop_name
=
key_value_pair_array
[
i
][
0
];
...
...
@@ -839,7 +842,13 @@ function show_object(state, loc, target, depth) {
// TODO: complete
break
;
case
"
Coq_value_prim
"
:
case
"
Coq_value_object
"
:
show_value
(
state
,
attribute
,
targetsub
,
depth
-
1
);
break
;
default
:
console
.
log
(
attribute
);
throw
"
invalid attribute.tag
"
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment