summaryrefslogtreecommitdiff
path: root/module/language/ecmascript/impl.scm
diff options
context:
space:
mode:
Diffstat (limited to 'module/language/ecmascript/impl.scm')
-rw-r--r--module/language/ecmascript/impl.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/language/ecmascript/impl.scm b/module/language/ecmascript/impl.scm
index c335af0b9..65a46fa80 100644
--- a/module/language/ecmascript/impl.scm
+++ b/module/language/ecmascript/impl.scm
@@ -55,7 +55,8 @@
*undefined*)))))
(define-method (prop-attrs (o <js-object>) p)
- (or (hashq-ref (js-prop-attrs o) p)
+ (or (let ((attrs (js-prop-attrs o)))
+ (and attrs (hashq-ref (js-prop-attrs o) p)))
(let ((proto (js-prototype o)))
(if proto
(prop-attrs proto p)